package com.moshang.blog.mapper;

import com.moshang.blog.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moshang.blog.entity.vo.ShowMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author moshang
 * @email 597575122@qq.com
 * @date 2018-09-21 14:45:09
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> getSysMenuByUserId(@Param("id") Integer id);

    List<ShowMenu> selectShowMenuByUser(Map<String, Object> map);

    List<SysMenu> getMenus(Map map);

    List<SysMenu> getChildMenuByParentId(@Param("parentId") Integer pId );
}
